home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / emacs_src_18_58.lha / emacs-18.58 / compile.doc < prev    next >
Text File  |  1992-10-01  |  2KB  |  47 lines

  1. To compile emacs, you will need SAS C 5.10b. If you try to make it work
  2. with Aztec C or gcc, you might run into difficulties with the dumping code:
  3. - The "small" data model (A4-relative) is used, to get all the variables
  4.   in one hunk.
  5. - Some variables are declared with the "far" attribute to get them out
  6.   of this hunk (and the dumping code depends on this). Move these to
  7.   the amiga_data.c module (which is for variables that shouldn't be
  8.   dumped).
  9. You will also need my 'unix compatibility' library which should have been
  10. distributed alongside emacs.
  11.  
  12. To compile:
  13.  
  14. a) Install the 'unix compatibility' library.
  15.  
  16. b) Install as usual (see INSTALLATION).
  17.  
  18. c) Compile the C preprocessor (SAS's one has problems ...):
  19.  
  20.      cd gnuemacs:cpp
  21.      lmk
  22.  
  23.    When the preprocessor is running, it needs to find uncompacted versions
  24.    of the include files. If you only installed the compacted include files,
  25.    you will have to install the uncompacted ones somewhere.
  26.  
  27.    You can check your type of include files by looking to see if (eg)
  28.    include:stdio.h is a readable text file (all is ok) or contains binary 
  29.    characters (you have the compacted files).
  30.  
  31. d) Define cpp-include: to point to the uncompacted include files. If you forget
  32.    this, you won't get a requester ...
  33.  
  34. e) Compile & dump emacs
  35.  
  36.      stack 20000
  37.      cd gnuemacs:src
  38.      lmk
  39.      copy temacs /
  40.  
  41.    (This takes around 20 minutes from scratch on an A2500/30).
  42.  
  43. If all goes well, you should have a new version of emacs ...
  44.  
  45. [Note: The DOC strings are not remade systematically. To change this,
  46. edit ymakefile and remove the comment from the rule for xemacs]
  47.